using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TwoFiveItem : MonoBehaviour
{
    public Image image;
    // Start is called before the first frame update
    public void But()
    {
        if (TwoPanel.Ins.MoveNum > 0)
        {
            if (!image.gameObject.activeSelf)
            {
                image.gameObject.SetActive(true);
                TwoPanel.Ins.MoneyNum += 1000;
                TwoPanel.Ins.MoveNum--;
            }
        }
    }
}
